/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import org.apache.avro.util.Utf8;
import java.util.HashMap;

/**
 *
 * @author evan
 */
public class Utf8ToString {

    public static void main(String[] args) {
        Utf8 u = new Utf8("a");
        HashMap<Utf8, String> m = new HashMap<Utf8, String>();
        m.put(u, "123");
        System.out.println(m.get(new Utf8("a")));
        System.out.println(u.toString());
        if(u.toString()=="a"){
            System.out.println("ok");
        }
    }
}
